/****************************************************************************
** Meta object code from reading C++ file 'commrobotiq.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "commrobotiq.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'commrobotiq.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.3.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_CommRobotiq_t {
    QByteArrayData data[26];
    char stringdata[238];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CommRobotiq_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CommRobotiq_t qt_meta_stringdata_CommRobotiq = {
    {
QT_MOC_LITERAL(0, 0, 11),
QT_MOC_LITERAL(1, 12, 12),
QT_MOC_LITERAL(2, 25, 0),
QT_MOC_LITERAL(3, 26, 9),
QT_MOC_LITERAL(4, 36, 14),
QT_MOC_LITERAL(5, 51, 3),
QT_MOC_LITERAL(6, 55, 16),
QT_MOC_LITERAL(7, 72, 3),
QT_MOC_LITERAL(8, 76, 16),
QT_MOC_LITERAL(9, 93, 8),
QT_MOC_LITERAL(10, 102, 14),
QT_MOC_LITERAL(11, 117, 17),
QT_MOC_LITERAL(12, 135, 7),
QT_MOC_LITERAL(13, 143, 10),
QT_MOC_LITERAL(14, 154, 4),
QT_MOC_LITERAL(15, 159, 5),
QT_MOC_LITERAL(16, 165, 10),
QT_MOC_LITERAL(17, 176, 6),
QT_MOC_LITERAL(18, 183, 8),
QT_MOC_LITERAL(19, 192, 2),
QT_MOC_LITERAL(20, 195, 9),
QT_MOC_LITERAL(21, 205, 2),
QT_MOC_LITERAL(22, 208, 4),
QT_MOC_LITERAL(23, 213, 4),
QT_MOC_LITERAL(24, 218, 11),
QT_MOC_LITERAL(25, 230, 7)
    },
    "CommRobotiq\0signal_error\0\0errorCode\0"
    "signal_message\0str\0signal_found_obj\0"
    "pos\0signal_not_found\0checkObj\0"
    "connectRobotiq\0disconnectRobotiq\0"
    "acitved\0readStatus\0int&\0state\0clearError\0"
    "setPos\0setSpeed\0sp\0setTorque\0tq\0stop\0"
    "move\0checkStatus\0message"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CommRobotiq[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      17,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   99,    2, 0x06 /* Public */,
       4,    1,  102,    2, 0x06 /* Public */,
       6,    1,  105,    2, 0x06 /* Public */,
       8,    0,  108,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    0,  109,    2, 0x0a /* Public */,
      10,    0,  110,    2, 0x0a /* Public */,
      11,    0,  111,    2, 0x0a /* Public */,
      12,    0,  112,    2, 0x0a /* Public */,
      13,    1,  113,    2, 0x0a /* Public */,
      16,    0,  116,    2, 0x0a /* Public */,
      17,    1,  117,    2, 0x0a /* Public */,
      18,    1,  120,    2, 0x0a /* Public */,
      20,    1,  123,    2, 0x0a /* Public */,
      22,    0,  126,    2, 0x0a /* Public */,
      23,    3,  127,    2, 0x0a /* Public */,
      24,    0,  134,    2, 0x0a /* Public */,
      25,    1,  135,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Short,    3,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::Short,    7,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Int,
    QMetaType::Int, 0x80000000 | 14,   15,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Short,    7,
    QMetaType::Void, QMetaType::Short,   19,
    QMetaType::Void, QMetaType::Short,   21,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Short, QMetaType::Short, QMetaType::Short,    7,   19,   21,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    5,

       0        // eod
};

void CommRobotiq::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        CommRobotiq *_t = static_cast<CommRobotiq *>(_o);
        switch (_id) {
        case 0: _t->signal_error((*reinterpret_cast< short(*)>(_a[1]))); break;
        case 1: _t->signal_message((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 2: _t->signal_found_obj((*reinterpret_cast< short(*)>(_a[1]))); break;
        case 3: _t->signal_not_found(); break;
        case 4: _t->checkObj(); break;
        case 5: { int _r = _t->connectRobotiq();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 6: { int _r = _t->disconnectRobotiq();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 7: { int _r = _t->acitved();
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 8: { int _r = _t->readStatus((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 9: _t->clearError(); break;
        case 10: _t->setPos((*reinterpret_cast< short(*)>(_a[1]))); break;
        case 11: _t->setSpeed((*reinterpret_cast< short(*)>(_a[1]))); break;
        case 12: _t->setTorque((*reinterpret_cast< short(*)>(_a[1]))); break;
        case 13: _t->stop(); break;
        case 14: _t->move((*reinterpret_cast< short(*)>(_a[1])),(*reinterpret_cast< short(*)>(_a[2])),(*reinterpret_cast< short(*)>(_a[3]))); break;
        case 15: _t->checkStatus(); break;
        case 16: _t->message((*reinterpret_cast< QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (CommRobotiq::*_t)(short );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CommRobotiq::signal_error)) {
                *result = 0;
            }
        }
        {
            typedef void (CommRobotiq::*_t)(QString );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CommRobotiq::signal_message)) {
                *result = 1;
            }
        }
        {
            typedef void (CommRobotiq::*_t)(short );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CommRobotiq::signal_found_obj)) {
                *result = 2;
            }
        }
        {
            typedef void (CommRobotiq::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CommRobotiq::signal_not_found)) {
                *result = 3;
            }
        }
    }
}

const QMetaObject CommRobotiq::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_CommRobotiq.data,
      qt_meta_data_CommRobotiq,  qt_static_metacall, 0, 0}
};


const QMetaObject *CommRobotiq::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *CommRobotiq::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_CommRobotiq.stringdata))
        return static_cast<void*>(const_cast< CommRobotiq*>(this));
    return QObject::qt_metacast(_clname);
}

int CommRobotiq::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 17;
    }
    return _id;
}

// SIGNAL 0
void CommRobotiq::signal_error(short _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void CommRobotiq::signal_message(QString _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void CommRobotiq::signal_found_obj(short _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void CommRobotiq::signal_not_found()
{
    QMetaObject::activate(this, &staticMetaObject, 3, 0);
}
QT_END_MOC_NAMESPACE
